package cn.tcmp.controller;

import cn.tcmp.service.SortService;
import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SortController {

    @Autowired
    private SortService sortService;

    @RequestMapping(value = "queryById",method = RequestMethod.GET
            ,produces = {"application/json;charset=utf-8"})
    public String queryById(){
        return JSON.toJSONString(sortService.queryById());
    }


}
